import request from '@/utils/request'

// 查询售后工单产品明细列表
export function listAsAfterSalesWorkOrderLine(query) {
  return request({
    url: '/as/asAfterSalesWorkOrderLine/list',
    method: 'get',
    params: query
  })
}

// 查询售后工单产品明细详细
export function getAsAfterSalesWorkOrderLine(id) {
  return request({
    url: '/as/asAfterSalesWorkOrderLine/' + id,
    method: 'get'
  })
}

// 新增售后工单产品明细
export function addAsAfterSalesWorkOrderLine(data) {
  return request({
    url: '/as/asAfterSalesWorkOrderLine',
    method: 'post',
    data: data
  })
}

// 修改售后工单产品明细
export function updateAsAfterSalesWorkOrderLine(data) {
  return request({
    url: '/as/asAfterSalesWorkOrderLine',
    method: 'put',
    data: data
  })
}

// 删除售后工单产品明细
export function delAsAfterSalesWorkOrderLine(id) {
  return request({
    url: '/as/asAfterSalesWorkOrderLine/' + id,
    method: 'delete'
  })
}
